/**
 * MineAdmin is committed to providing solutions for quickly building web applications
 * Please view the LICENSE file that was distributed with this source code,
 * For the full copyright and license information.
 * Thank you very much for using MineAdmin.
 *
 * @Author X.Mo<root@imoi.cn>
 * @Link   https://github.com/mineadmin
 */

import type { MaSearchItem } from "@mineadmin/search";
import MaDictSelect from "@/components/ma-dict-picker/ma-dict-select.vue";

export default function getSearchItems(t: any): MaSearchItem[] {
  return [
    {
      label: "报警图片地址",
      prop: "alarm_pic_path",
      render: "input",
      renderProps: {
        placeholder: t("form.pleaseInput", { msg: "报警图片地址" }),
      },
    },
    {
      label: "报警图片名称",
      prop: "alarm_pic_name",
      render: "input",
      renderProps: {
        placeholder: t("form.pleaseInput", { msg: "报警图片名称" }),
      },
    },
    {
      label: "摄像头ID",
      prop: "camera_id",
      render: () => MaDictSelect,
      renderProps: { multiple: false },
    },
    {
      label: "摄像头地址",
      prop: "camera_url",
      render: "input",
      renderProps: {
        placeholder: t("form.pleaseInput", { msg: "摄像头地址" }),
      },
    },
    {
      label: "源图片地址",
      prop: "src_pic_path",
      render: "input",
      renderProps: {
        placeholder: t("form.pleaseInput", { msg: "源图片地址" }),
      },
    },
    {
      label: "源图片名称",
      prop: "src_pic_name",
      render: "input",
      renderProps: {
        placeholder: t("form.pleaseInput", { msg: "源图片名称" }),
      },
    },
    {
      label: "任务ID",
      prop: "task_id",
      render: () => MaDictSelect,
      renderProps: { multiple: false },
    },
    {
      label: "时间戳",
      prop: "timestamp",
      render: "input",
      renderProps: { placeholder: t("form.pleaseInput", { msg: "时间戳" }) },
    },
  ];
}
